//
//  CRMListTopView.h
//  New_Runway
//
//  Created by 邢毅 on 2018/4/11.
//  Copyright © 2018年 NelsonJ. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSUInteger, CRMListTopViewButtonType) {
    CRMListTopViewButtonTypeSort = 10,
    CRMListTopViewButtonTypeLevel,
    CRMListTopViewButtonTypeChannel,
    CRMListTopViewButtonTypeState,
    CRMListTopViewButtonTypeFilter
};

@class CRMListTopView;

@protocol CRMListTopViewDelegate<NSObject>

- (void)topView:(CRMListTopView *)view buttonDidClick:(UIButton *)sender withType:(CRMListTopViewButtonType)type;

@end

@interface CRMListTopView : UIView

@property (weak, nonatomic) id<CRMListTopViewDelegate> delegate;

@property (assign, nonatomic) CRMListViewType listViewType;

- (void)prepar;

@end
